package com.zzyl.nursing.service;

import java.util.List;
import com.zzyl.nursing.domain.ReservationMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.ReservationDto;
import com.zzyl.nursing.vo.TimeCountVo;

/**
 * 预约信息Service接口
 * 
 * @author dustin
 * @date 2025-08-29
 */
public interface IReservationMemberService extends IService<ReservationMember>
{
    /**
     * 查询预约信息
     * 
     * @param id 预约信息主键
     * @return 预约信息
     */
    public ReservationMember selectReservationMemberById(Long id);

    /**
     * 查询预约信息列表
     * 
     * @param reservationMember 预约信息
     * @return 预约信息集合
     */
    public List<ReservationMember> selectReservationMemberList(ReservationMember reservationMember);

    /**
     * 新增预约信息
     * 
     * @param reservationMember 预约信息
     * @return 结果
     */
    public int insertReservationMember(ReservationMember reservationMember);

    /**
     * 修改预约信息
     * 
     * @param reservationMember 预约信息
     * @return 结果
     */
    public int updateReservationMember(ReservationMember reservationMember);

    /**
     * 批量删除预约信息
     * 
     * @param ids 需要删除的预约信息主键集合
     * @return 结果
     */
    public int deleteReservationMemberByIds(Long[] ids);

    /**
     * 删除预约信息信息
     * 
     * @param id 预约信息主键
     * @return 结果
     */
    public int deleteReservationMemberById(Long id);

    Integer cancelledCount();

    List<TimeCountVo> countByTime(Long time);

    void add(ReservationDto dto);

    List<ReservationMember> getPageList(ReservationMember reservationMember);

    void cannel(Long id);
}
